a=input()
print(a[:3]+'...'+a[-3:])
